package com.learn.hibernatevalidator.chapter12.propertypath;

import jakarta.validation.Valid;

import java.util.HashSet;
import java.util.Set;

public class Building {

    @Valid
    private Set<Apartment> apartments = new HashSet<Apartment>();

    public Set<Apartment> getApartments() {
        return apartments;
    }

    public void setApartments(Set<Apartment> apartments) {
        this.apartments = apartments;
    }
}
